package com.zerdoor.service.impl;

import com.zerdoor.dao.MemRaceDao;
import com.zerdoor.service.MemRaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by xiaoji on 2015/1/9.
 */
@Service
public class MemRaceServiceImpl implements MemRaceService {

    @Autowired
    private MemRaceDao memRaceDao;
    @Override
    public List<Map<String, Object>> getArtistRace(int artistId) {
        return memRaceDao.getArtistRace(artistId);
    }

    @Override
    public List<Map<String, Object>> getPrincipalRace(int userId) {
        return memRaceDao.getPrincipalRace(userId);
    }
}
